package com.dk.controller;

import com.dk.service.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    private Logger log = LoggerFactory.getLogger(DemoController.class);

    @GetMapping("test")
    public String Test(){
        demoService.test("像蕈兽一样跳跃");
        log.error("error");
        log.warn("warn");
        log.info("info");
        log.debug("debug");
        return "hello";
    }

}
